<?php
namespace app\common\model;
use think\Db;
class Data{
    
    //获取身份证库
    public function getIdcard(){
        $rs = Db::name('data_idcard')->select();
        $temp = [];
        foreach($rs as $v){
            $temp[$v['code']] = [
                'pro' => $v['pro'],
                'city' => $v['city'],
                'county' => $v['county'],
            ];
        }    
        return $temp;
    }
    
    //银行卡信息
    public function getBank(){
        $rs = Db::name('data_bank')->select();
        $temp = [];
        foreach($rs as $v){
            $temp[$v['code']] = [
                'b_name'  => $v['b_name'],
                'b_title' => $v['b_title'],
                'b_type'  => $v['b_type'],
            ];
        }
        return $temp;
    }
}